<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../css/header.css" />
</head>

<body>
    <header class="aui-bar aui-bar-nav aui-bar-light" id="aui-header" >
        <a class="aui-btn aui-pull-left" tapmode onclick="closeWin()">
            <span style="color:#81B846;" class="aui-iconfont aui-icon-left"></span>
        </a>
        <div class="aui-title" style="color:#81B846;">主机详情</div>
        <div class="aui-btn aui-pull-right" style="width:48px;height:48px;margin-top:-4px;" tapmode onclick="openFrameSetting()">
            <img src="../../image/main/nav_icon_setting.png">
        </div>
    </header>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript">
    apiready = function() {
        api.parseTapmode();
        var header = $api.byId('aui-header');
        $api.fixStatusBar(header);
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        api.openFrame({
            name: 'detail_frm',
            url: 'detail_frm.html',
            bounces: true,
            bgColor: '#EFF3F5',
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: 'auto'
            }
        })
    };

    function closeWin() {
        api.closeWin({});
    }

    function openFrameSetting(){
      api.openWin({
          name: 'FrameSetting',
          url: './frameSetting_win.html',
          pageParam: {
              name: 'test'
          }
      });

    }

</script>

</html>
